<template>
  <div class="container">
    <div class="box" v-for="i in 25">{{ i }}</div>
  </div>
</template>

<style lang="less" scoped>
.container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); //每行4个，可手动调整
  border: 1px solid #ccc;
  width: 100%;
  margin: auto;
  grid-gap: 1px;
}
.box {
  outline: 1px solid #ccc;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  // box-sizing: border-box;
}
</style>
